#pragma once
#include "wOHandle.hpp"
#include "ProObjects.h"
#include <memory>
#include "wCollection.hpp"
#include "wProException.hpp"


namespace witotk{

	class wProEdge:public wOHandle<ProEdge>
	{
	public:
		wProEdge(ProEdge suf):wOHandle<ProEdge>(suf)
		{
		}

		ProModelitem ToGeomitem(ProSolid solid)
		{
			ProGeomitem geom_item;
			ProError err = ProEdgeToGeomitem ( solid,m_data,&geom_item);
			PROE_THROW(err,"ToGeomitem");
			return geom_item;
				
		}
	};

	typedef	std::tr1::shared_ptr<wProEdge> wProEdge_ptr;


	typedef	wCollectionshared_ptr<wCollection<wProEdge>> wProEdgeCollection_ptr;

	typedef	wCollection<wProEdge> wProEdgeCollection;
}